// 配置轻服务SDK
import InspireCloud from "@byteinspire/js-sdk/dist/inspirecloud-0.5.1.min.js"
const serviceId = "qcjtqx" // 替换成你的 serviceId
const inspirecloud = new InspireCloud({ serviceId })

/************定义API函数 **********/

/**
 * @description 请求发送短信的API
 * @param {Object} data
 * @returns {Promise}
 */
export const sendMessageAPI = (data) => {
    const { phoneNumber } = data
    return inspirecloud.run("sendMessageAPI", { phoneNumber })
}
